Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@saleor/[email protected]
Major Changes
3dfb91c:
requiredEnvVars
param was removed trom SaleorApp. Field was not used internally. Apps should validate it's envs.51caa77: Removed
/middlewares
, you should use/handlers
instead.51caa77: Removed deprecated fields fields and methods in
/handlers
:SaleorAsyncWebhook
andSaleorSyncWebhook
- removed deprecatedasyncEvent
andsubscriptionQueryAst
processSaleorWebhook
andprocessProtectedHandler
methods in favor ofSaleorSyncWebhook
,SaleorAsyncWebhook
classes andcreateProtectedHandler
handler/next
to/shared
a915771: ### APL
isReady
andisConfigured
methods are now optional in theAPL
interface@saleor/app-sdk/APL/*
where*
is one of the implementations. Now tree shaking is available126493d: Generating AppBridge action now uses native web API Crypto.
5b0f7a8: Removed
ctx.buildResponse
parameter from SyncWebhookHandler ctx and replace with standalonebuildSyncWebhookResponsePayload
functionBefore
After
This change reduces complexity of TypeScript generics and make it easier to build abstractions on top of built-in handlers
3dfb91c: Saleor version that was previously represented as a floating number (eg Saleor 3.20 was represented as 3.2) is now a
SaleorSchemaVersion
which is a tuplemajor: number, minor: number
. This format is now passed to Manifest handler and webhooks handlerc956220: Breaking change: SDK will no longer check
saleor-domain
header when validating Saleor requests, instead it will checksaleor-api-url
header.Minor Changes
4fa8271: Added handlers for Web API: Request and Response
Example
This example uses Next.js app router
To see more details check these examples:
51caa77: Added abstract
PlatformAdapterInterface
andActionHandlerInterface
to enable cross-framework handler implementations.Next.js handlers were rewritten to use the new interface.
5e4eb20: Add new exported path "util" with helper methods like parseSchemaVersion
Patch Changes
003b1ca: Added
author
andlicense
fields topacakge.json
003b1ca: Updated project license: it previously used BSD 3-Clause for code and Creative Commons Attribution 4.0 International License for artwork.
Since this project doesn't include any artwork, Creative Commons license was removed.
Updated
license
field inpackage.json
: It incorrectly statedISC
license instead ofBSD-3-Clause
.8f6b437: Updated Typescript
0a917ac: Updated packages: vite, vitest, raw-body, prettier, tsup, jose
5fb68e6: Schema version passed to manifest handler will be string, not float
853abaa: Added AWS Lambda platform handlers
Check this example on how to use it.